package com.zhouyu.service;

import org.springframework.context.SmartLifecycle;
import org.springframework.stereotype.Component;

/**
 * @author leimingchao
 * create 2025-05-11 15:35
 */
//@Component
public class ZhouyuLifecycle2 implements SmartLifecycle {

	private boolean isRunning;

	@Override
	public void start() {
		System.out.println("start");
		this.isRunning = true;
	}

	@Override
	public void stop() {
		System.out.println("stop");
	}

	@Override
	public boolean isRunning() {
		return this.isRunning;
	}

	@Override
	public int getPhase() {
		return 1;
	}
}
